package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 个人信息业务对象 t_private_message
 *
 * @author ruoyi
 * @date 2023-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TPrivateMessageBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 0管理员,1职工,2旅行社
     */
    @NotNull(message = "0管理员,1职工,2旅行社不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer senderType;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sender;

    /**
     * 0管理员,1职工,2旅行社
     */
    @NotNull(message = "0管理员,1职工,2旅行社不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer receiverType;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long receiver;

    /**
     * 消息内容id
     */
    @NotNull(message = "消息内容id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long messageId;

    /**
     * 0未读,1已读
     */
    @NotNull(message = "0未读,1已读不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isRead;


}
